
<!DOCTYPE html>
<html lang="zh" class="loading">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>Category: Python - 二月の档案室</title>
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="google" content="notranslate" />
    <meta name="keywords" content="二月,"> 
    <meta name="description" content="所感所想，所言所行，我将以文字记录我自己。,"> 
    <meta name="author" content="Allureluoli"> 
    <link rel="alternative" href="atom.xml" title="二月の档案室" type="application/atom+xml"> 
    <link rel="icon" href="/img/favicon.png"> 
    
    
    
    <meta name="twitter:card" content="summary"/>
    <meta name="twitter:title" content="Category: Python - 二月の档案室"/>
    <meta name="twitter:description" content="所感所想，所言所行，我将以文字记录我自己。,"/>
    
    
    
    
    <meta property="og:site_name" content="二月の档案室"/>
    <meta property="og:type" content="object"/>
    <meta property="og:title" content="Category: Python - 二月の档案室"/>
    <meta property="og:description" content="所感所想，所言所行，我将以文字记录我自己。,"/>
    
<link rel="stylesheet" href="/css/diaspora.css">

    <script>window.searchDbPath = "/search.xml";</script>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap" rel="stylesheet">
<meta name="generator" content="Hexo 6.3.0"></head>

<body class="loading">
    <span id="config-title" style="display:none">二月の档案室</span>
    <div id="loader"></div>
    <div class="nav">
    <ul id="menu-menu" class="menu">
        
        <li class="pview menu-item menu-item-type-post_type menu-item-object-page">
            <a href="//" title="首页" target="_blank" rel="noopener">首页</a>
        </li>
        
        <li class="pview menu-item menu-item-type-post_type menu-item-object-page">
            <a href="/categories/" title="分类" target="_blank" rel="noopener">分类</a>
        </li>
        
        <li class="pview menu-item menu-item-type-post_type menu-item-object-page">
            <a href="/tags/" title="标签" target="_blank" rel="noopener">标签</a>
        </li>
        
        <li class="pview menu-item menu-item-type-post_type menu-item-object-page">
            <a href="/archives/" title="归档" target="_blank" rel="noopener">归档</a>
        </li>
        
        <li class="pview menu-item menu-item-type-post_type menu-item-object-page">
            <a href="/about/" title="关于" target="_blank" rel="noopener">关于</a>
        </li>
        
    </ul>
	<span class="target"></span>
	<center>
	<div class="hitokoto">
		<span class="typed" id="hitokoto" data-st="true"></span>
	</div>
	</center>
	
	<p class="footerlinks">
		<a href="#" class="iconfont icon-null"></a>
		
            <a href="/" title="facebook" class="iconfont icon-facebook" target="_blank" rel="noopener"> </a>
        
            <a href="/" title="twitter" class="iconfont icon-twitter" target="_blank" rel="noopener"> </a>
        
            <a href="https://github.com/allureluoli/" title="github" class="iconfont icon-github" target="_blank" rel="noopener"> </a>
        
            <a href="/img/logo.png" title="wechat" class="iconfont icon-wechat" target="_blank" rel="noopener"> </a>
        
            <a href="mailto:3345483363@qq.com" title="email" class="iconfont icon-email" target="_blank" rel="noopener"> </a>
        
		<a href="#" class="iconfont icon-null"></a>
	</p>
	
    <p id="copyright">
        &copy; 2023 Allureluoli.
        <span> | </span>Powered by <a href="https://hexo.io/" title="Hexo" target="_blank" rel="noopener">Hexo</a>
        <span> | </span>Theme <a href="https://github.com/Fechin/hexo-theme-diaspora" title="Diaspora" target="_blank" rel="noopener">Diaspora</a> by Fechin
		
		<span> | </span><a rel="nofollow" href="http://www.beian.miit.gov.cn" target="_blank">冀ICP备xxxxxxx号</a>
		
    </p>
</div>

<div id="container">
    
<div id="screen">
    <div id="mark">
        <div class="layer" data-depth="0.4">
            <img src="/img/welcome-cover.jpg" id="cover" crossorigin="anonymous" width="1920" height="1080">
        </div>
    </div>
    <div id="vibrant">
        <svg viewbox="0 0 2880 1620" height="100%" preserveaspectratio="xMaxYMax slice">
            <polygon opacity="0.7" points="2000,1620 0,1620 0,0 600,0 "/>
        </svg>
        <div></div>
    </div>
    <div id="header">
        <div>
            <a class="image-logo" href="/"></a>
			
            <div class="iconfont icon-menu switchmenu"></div>
        </div>
    </div>
    
    <div id="post0">
        <p>三月 24, 2023</p>
        <h2><a href="/2023/03/24/2023-3-24-%5BNonebot%5D-%E4%BD%BF%E7%94%A8got%E8%A3%85%E9%A5%B0%E5%99%A8%E5%88%B6%E4%BD%9C%E6%AF%94%E8%B5%9B%E6%8A%BD%E5%9B%BE%E7%B3%BB%E7%BB%9F/" title="使用got装饰器制作比赛抽图系统" class="posttitle">使用got装饰器制作比赛抽图系统</a></h2>
        <p class="summary">反思说实话，这段代码并不完美，got装饰器有专门的获取消息的方法，而我仍然在使用获取事件消息的方式。
而这种实现方...</p>
    </div>
    
</div>

    <div id="primary">
        
<div class="post">
    <a href="/2023/03/19/2023-3-19-%E8%A2%ABif%E8%AF%AD%E5%8F%A5%E7%BB%99%E4%BA%88%E4%B8%80%E7%82%B9%E5%B0%8F%E5%B0%8F%E9%9C%87%E6%92%BC/" title="被if语句给予一点小小震撼">
        <img src="/img/tu%20(22).gif" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>三月 19, 2023</p>
        <h3><a href="/2023/03/19/2023-3-19-%E8%A2%ABif%E8%AF%AD%E5%8F%A5%E7%BB%99%E4%BA%88%E4%B8%80%E7%82%B9%E5%B0%8F%E5%B0%8F%E9%9C%87%E6%92%BC/" title="被if语句给予一点小小震撼" class="posttitle">被if语句给予一点小小震撼</a></h3>
        <p>#被if语句给予一点小小震撼
为什么是and 而不是or?
123QQ=1252if int(QQ) != 3345483363 or int(QQ) !...</p>
    </div>
</div>


<div class="post">
    <a href="/2023/03/08/Nonebot%E5%88%9B%E5%BB%BA%E8%81%8A%E5%A4%A9%E6%95%99%E5%AD%A6%E5%8A%9F%E8%83%BD/" title="Nonebot创建聊天教学功能">
        <img src="/img/welcome-cover.jpg" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>三月 08, 2023</p>
        <h3><a href="/2023/03/08/Nonebot%E5%88%9B%E5%BB%BA%E8%81%8A%E5%A4%A9%E6%95%99%E5%AD%A6%E5%8A%9F%E8%83%BD/" title="Nonebot创建聊天教学功能" class="posttitle">Nonebot创建聊天教学功能</a></h3>
        <p>起因  在阅读前辈代码的时候我发现前辈们会专门的分出一个类专门进行数据处理相关的操作，于是我便顺着这个想法改进了我的代码。
  这使我项目代码的结构更为规...</p>
    </div>
</div>


<div class="post">
    <a href="/2023/03/06/Python%E7%9A%84%E7%BB%8F%E9%AA%8C%E6%80%BB%E7%BB%93/" title="Python 模块重载">
        <img src="/img/tu%20(34).jpg" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>三月 06, 2023</p>
        <h3><a href="/2023/03/06/Python%E7%9A%84%E7%BB%8F%E9%AA%8C%E6%80%BB%E7%BB%93/" title="Python 模块重载" class="posttitle">Python 模块重载</a></h3>
        <p>在使用Nonebot框架进行的开发中，我接触到了许多新的概念，也了解了更多知识。大概有，如下：

async 异步语句
python程序模块化的更深概念
...</p>
    </div>
</div>


<div class="post">
    <a href="/2022/11/03/Python%20reload()%20%E5%87%BD%E6%95%B0%E4%BD%BF%E7%94%A8/" title="Python 模块重载">
        <img src="/img/tu%20(34).jpg" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>十一月 03, 2022</p>
        <h3><a href="/2022/11/03/Python%20reload()%20%E5%87%BD%E6%95%B0%E4%BD%BF%E7%94%A8/" title="Python 模块重载" class="posttitle">Python 模块重载</a></h3>
        <p>
Python 模块重载 更好的调用函数的方法
前言  反复的去定义一个重复的代码会极大的降低我们的代码质量和工作效率，而Python本身模块目录结构的调...</p>
    </div>
</div>


<div class="post">
    <a href="/2022/11/01/Python%20%E5%A4%9A%E7%BA%BF%E7%A8%8B/" title="Python多线程学习">
        <img src="/img/tu%20(34).jpg" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>十一月 01, 2022</p>
        <h3><a href="/2022/11/01/Python%20%E5%A4%9A%E7%BA%BF%E7%A8%8B/" title="Python多线程学习" class="posttitle">Python多线程学习</a></h3>
        <p>认识多线程## 多线程类似于同时执行多个不同程序，多线程运行有如下优点：

使用线程可以把占据长时间的程序中的任务放到后台去处理。
用户界面可以更加吸引人...</p>
    </div>
</div>


<div class="post">
    <a href="/2022/11/01/Nonebot%E8%AE%BE%E7%BD%AE%E6%95%99%E5%AD%A6%E5%8A%9F%E8%83%BD/" title="NoneBot设置教学功能">
        <img src="/img/tu%20(22).gif" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>十一月 01, 2022</p>
        <h3><a href="/2022/11/01/Nonebot%E8%AE%BE%E7%BD%AE%E6%95%99%E5%AD%A6%E5%8A%9F%E8%83%BD/" title="NoneBot设置教学功能" class="posttitle">NoneBot设置教学功能</a></h3>
        <p>
话不多说，直接上代码  在之前便设置了读取词库的方法，这样以来设计教学功能便简单许多了。  原理：  在事件响应的时候获取原消息纯文件，将命令与教学内容...</p>
    </div>
</div>


<div class="post">
    <a href="/2022/11/01/Nonebot%E8%AF%BB%E5%8F%96%E7%8C%AB%E7%8C%AB%E8%AF%8D%E5%BA%93%E6%96%B9%E6%B3%95/" title="NoneBot读取猫猫词库方法">
        <img src="/img/tu%20(69).jpg" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>十一月 01, 2022</p>
        <h3><a href="/2022/11/01/Nonebot%E8%AF%BB%E5%8F%96%E7%8C%AB%E7%8C%AB%E8%AF%8D%E5%BA%93%E6%96%B9%E6%B3%95/" title="NoneBot读取猫猫词库方法" class="posttitle">NoneBot读取猫猫词库方法</a></h3>
        <p>#话不多说，直接上代码###读取文件的方法##为了保证Bot的可移植性，将词库文件存在机器人插件目录中，同时使用此函数读取根目录路径，与之相对路径合并，生...</p>
    </div>
</div>


<div class="post">
    <a href="/2022/10/31/Python%20%E5%A4%8D%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%88%E4%B8%89%EF%BC%89/" title="Python 复习笔记（三）">
        <img src="/img/tu%20(75).jpg" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>十月 31, 2022</p>
        <h3><a href="/2022/10/31/Python%20%E5%A4%8D%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%88%E4%B8%89%EF%BC%89/" title="Python 复习笔记（三）" class="posttitle">Python 复习笔记（三）</a></h3>
        <p>声明  Python 中的变量不需要特意声明类型，只需要在使用前提前赋值。而变量所指向的内存中对象的类型会自动的根据变量所赋值的类型去自动声明。
  等号...</p>
    </div>
</div>


<div class="post">
    <a href="/2022/10/30/Python%20%E5%A4%8D%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%88%E4%BA%8C%EF%BC%89/" title="Python 复习笔记（二）">
        <img src="/img/tu%20(30).jpg" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>十月 30, 2022</p>
        <h3><a href="/2022/10/30/Python%20%E5%A4%8D%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%88%E4%BA%8C%EF%BC%89/" title="Python 复习笔记（二）" class="posttitle">Python 复习笔记（二）</a></h3>
        <p>简介本章主要简述了Python代码的写法和结构
缩进 Python最具特色的就是使用缩进来表示代码块，不需要使用大括号 {} 。缩进的空格数是可变的，但是...</p>
    </div>
</div>


    </div>
    
    <div id="pager"><a href="/categories/Python/page/2/" class="more">加载更多</a></div>
    
</div>
<div id="preview"></div>




</body>


<script src="//lib.baomitu.com/jquery/1.8.3/jquery.min.js"></script>
<script src="/js/plugin.js"></script>
<script src="/js/typed.js"></script>
<script src="/js/diaspora.js"></script>


<link rel="stylesheet" href="/photoswipe/photoswipe.css">
<link rel="stylesheet" href="/photoswipe/default-skin/default-skin.css">


<script src="/photoswipe/photoswipe.min.js"></script>
<script src="/photoswipe/photoswipe-ui-default.min.js"></script>


<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
    <!-- Background of PhotoSwipe. 
         It's a separate element as animating opacity is faster than rgba(). -->
    <div class="pswp__bg"></div>
    <!-- Slides wrapper with overflow:hidden. -->
    <div class="pswp__scroll-wrap">
        <!-- Container that holds slides. 
            PhotoSwipe keeps only 3 of them in the DOM to save memory.
            Don't modify these 3 pswp__item elements, data is added later on. -->
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>
        <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
        <div class="pswp__ui pswp__ui--hidden">
            <div class="pswp__top-bar">
                <!--  Controls are self-explanatory. Order can be changed. -->
                <div class="pswp__counter"></div>
                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
                <button class="pswp__button pswp__button--share" title="Share"></button>
                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
                <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                <!-- element will get class pswp__preloader--active when preloader is running -->
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                      <div class="pswp__preloader__cut">
                        <div class="pswp__preloader__donut"></div>
                      </div>
                    </div>
                </div>
            </div>
            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div> 
            </div>
            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>
            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>
            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>
        </div>
    </div>
</div>






</html>
